using PBMessage;
using UnityEngine;
using System.Collections;
using GameUnit;
public class SC_AbilityEvent_Handler :IPBHandler
{ 
    public void Exec(object packet) 
    {
        SC_AbilityEvent PacketData = (SC_AbilityEvent)packet;
        Unit curUnit = UnitManager.GetUnit(PacketData.unitId);
        if (curUnit != null)
        {
            curUnit.Abilities[PacketData.abilityKey].HandlerEvent(PacketData);
        }
    }
}
